ris:Github course link
Rebase
There are two main ways to use the git rebase command:
  1. Alternative to merging
  2. Clean up tool
Rebase Problems
Lots of changes of main create the need to git merge which creates new commits.
💡 Fast Forward commits can only happen when you have new commits on
your branch
and main
has not had any at the point of your merge
.
Rebase Workflow
  1. git checkout your branch
  2. git rebase main
Golden Rule of Rebase
💡 NEVER REBASE COMMITS THAT HAVE BEEN SHARED WITH OTHERS.
So we rebase
onto
the branch that we currently are on
.
Made with Markbase